package chai.ning.programming.train_1;

import java.util.Scanner;

public class LetterSizeWrite {

	public void letterSize(char c) {

		if (c >= 97 & c <= 123) {
			System.out.println("你输入的是：" + c + ",对应的大写字母是：" + (char) (c - 32));
		} else if (c >= 65 & c <= 91) {
			System.out.println("你输入的是大写英文字母：" + c);
		} else {
			System.out.println("你输入的不是英文字母！！SB");
		}
	}

	public static void main(String[] args) {

		LetterSizeWrite lsw = new LetterSizeWrite();
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入字符");
		String x = scanner.nextLine();
		char y = x.charAt(0);
		lsw.letterSize(y);
		System.out.println(x.length());
	}

}
